{% extends 'bbs/base.html' %}
{% load static %}
{% block title %} YYin's home {% endblock%}
{% block content %}

{% for b in bbs_post %}

    <div class="panel panel-default panel-body" style="min-height:300px">
        <div class="col-md-4">
            <img src="{% static 'bbs/image/img1.jpeg' %}" alt="smiley-face" class="img-thumbnail" style="max-width:100%;height:auto" />
        </div>
        <div class="col-md-8">
            <h3 onclick='location.href={% url "bbs:detail" b.pk%}'>{{ b.title }}<small>Subtext for header</small></h3>
            <div class="barcode"><span class="glyphicon glyphicon-qrcode"></span></div>
            <div class="row" style="padding-bottom:10px;">
                <span class="col-md-3 text-muted">{{ b.created }}</span>
                <span class="col-md-6 text-muted text-center">python</span>
                <span class="col-md-3 text-muted text-right">0 条评论</span>
            </div>

            <div style="min-height:120px;border-top:1px #EEE solid;border-bottom:1px #EEE solid;padding:10px;">
        <p> {{ b.content }} </p>
            </div>

            <div class="row" style="padding-top:10px;">
                <span class="col-md-10">
                    <button type="button" class="btn btn-default label label-default">Java</button>
                    <button type="button" class="btn btn-default label label-default">PHP</button>
                    <button type="button" class="btn btn-default label label-default">C</button>
                    <button type="button" class="btn btn-default label label-default">C++</button>
                </span>
                <span class="col-md-2 text-muted text-right" onclick="location.href=show.html">继续阅读 >></span>
            </div>
        </div>
    </div>

{% endfor %}
{% endblock %}

